# 编译静态库
add_library(xml STATIC "")

target_sources(xml
PRIVATE
    # 注：${CMAKE_CURRENT_LIST_DIR}代表当前的CMakeLists.txt文件所在的绝对路径。
    ${CMAKE_CURRENT_LIST_DIR}/../common/Value.cpp
    ${CMAKE_CURRENT_LIST_DIR}/Xml.cpp
    ${CMAKE_CURRENT_LIST_DIR}/Parser.cpp    
PUBLIC
    ${CMAKE_CURRENT_LIST_DIR}/../common/Value.h
    ${CMAKE_CURRENT_LIST_DIR}/Xml.h
    ${CMAKE_CURRENT_LIST_DIR}/Parser.h
)

target_include_directories(xml
PUBLIC 
    ${CMAKE_CURRENT_LIST_DIR}/../common
)